<template>
  <div class="app-container">
    <div v-if="user">
      <el-row :gutter="20">
        <el-col :span="6" :xs="24">
          <user-card :user="user" />
        </el-col>

        <el-col :span="18" :xs="24">
          <el-card>
            <div slot="header" class="clearfix">
              <span>基本资料</span>
            </div>
            <el-tabs v-model="activeTab">
              <el-tab-pane label="基本资料" name="activity">
                123
              </el-tab-pane>
              <el-tab-pane label="修改密码" name="timeline">
                456
              </el-tab-pane>
            </el-tabs>
          </el-card>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
import UserCard from './components/UserCard';

export default {
  name: 'UserInfo',
  components: { UserCard },
  data() {
    return {
      user: this.$store.getters.user,
      activeTab: 'activity'
    };
  }
};
</script>
